var app = getApp(),
  a = app.requirejs("core"),
  b = app.requirejs("api/kjb");
Page({
  data: {
    show: false,
    list:[]
  },

  onLoad: function (e) {
    a.setting();
    this.setData(e);
    this.getList();
  },
 getList:function(){
   
   var that = this,
    id = that.data.id;
   b.BargainRecord(id,function(t){
      that.setData(t)
    })
 },
 /**
    * 下拉刷新
    */
 onPullDownRefresh: function () {
   this.getList()
   wx.stopPullDownRefresh();
 }
})  